package zdy.web.control;

public class Fun {
	public static int getInt(Object id) {		
		if (id==null) return -1;
		try {
			return Integer.parseInt(id.toString());			
		}catch(Exception e) {
			return -1;
		}
	}
}
